﻿
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <title>AddUser</title>
</head>
<body>
    <div>
        <form action="/Default/AddUser" method="post">
            <h1>添加用户</h1>
            <h1>姓名：<input type="text" name="name" value="" /></h1>
            <h1>年龄：<input type="text" name="age" value="" /></h1>
            <h1>性别：<input type="text" name="sex" value="" /></h1>
            <input type="submit" name="" value="提交" />
        </form>
        <hr />
        <h1>姓名：@ViewData["name"]</h1>
        <h1>年龄：@ViewBag.age 岁</h1>
        <h1>性别：@ViewData["sex"]</h1>
    </div>
</body>
</html>
